Calling the stroke() method uses the current attribute value of strokeStyle (a color in hexadecimal format, such as 0x000000) as well as lineWidth to determine how to stroke the path.
通过调用 stroke() 方法,可以使用 strokeStyle (十六进制格式的颜色,例如 0x000000)和 lineWidth 的当前属性值来决定如何对该路径描边。
AttributeText (ns, name) — Gets text value of required attribute from current start tag.
attributeText (ns, name) -从当前的开始标记获取所需属性的文本值。
AttributeInt (ns, name, DFLT) — Gets int value of optional attribute from current start tag (returning default value if attribute is not present).
attributeInt (ns, name, dflt) -从当前的开始标记获取可选属性的int值(如果该属性不存在,那么返回缺省值)。
应用推荐